import request from '@/utils/request'

// 查询全部信息附件列表
export function listAttachment(query) {
    return request({
        url: '/system/attachment/list',
        method: 'get',
        params: query
    })
}

// 查询全部信息附件详细
export function getAttachment(id) {
    return request({
        url: '/system/attachment/' + id,
        method: 'get'
    })
}

// 新增证件信息附件
export function addAttachment(data) {
    return request({
        url: '/system/attachment',
        method: 'post',
        data: data
    })
}

// 修改证件信息附件
export function updateAttachment(data) {
    return request({
        url: '/system/attachment',
        method: 'put',
        data: data
    })
}

// 删除证件信息附件
export function delAttachment(id) {
    return request({
        url: '/system/attachment/' + id,
        method: 'delete'
    })
}